<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.net.URLDecoder"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>库房添加</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css"
	type="text/css" media="all" />


<script language="JavaScript" type="text/javascript">
function save(){
	if(document.form.name.value == null || document.form.name.value == ""){
		alert("库房名称必须填写");
		return;
	}
	else if(document.form.room.value == null || document.form.room.value == ""){
		alert("库房位置必须填写");
		return;
	}
	else if(confirm("确认保存？")){
		document.form.submit();			
	}
}
</script>
<style type="text/css">
</style>
</head>

<body class="ContentBody">
	<form action="StoreDeal?deal=add" method="post" name="form">
		<div class="MainDiv">
			<table width="99%" border="0" cellpadding="0" cellspacing="0"
				class="CContent">
				<tr>
					<th class="tablestyle_title">库房信息添加</th>
				</tr>
				<tr>
					<td class="CPanel">

						<table border="0" cellpadding="0" cellspacing="0"
							style="width: 100%">
							<tr>
								<td align="left"><input type="button" name="Submit"
									value="保存" class="button" onclick="save();" /> <input
									type="button" name="Submit2" value="返回" class="button"
									onclick="window.history.go(-1);" /></td>
							</tr>
							<tr>
								<td width="100%">
									<fieldset style="height: 100%;">
										<legend>库房信息</legend>
										<table border="0" cellpadding="2" cellspacing="1"
											style="width: 100%">
											<%
												
											%>
											<tr>
												<td align="right" width="15%">库房名称:</td>
												<td width="35%"><input name="name" id="name"
													type="text" class="text" style="width: 154px" value="" /></td>
												<td align="right" width="15%">库房房间:</td>
												<td width="35%"><input name="room" id="room"
													type="text" class="text" style="width: 154px" value="" /></td>
											</tr>
										</table>
										<br />
									</fieldset>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center" height="50px"><input
						type="button" name="Submit" value="保存" class="button" onclick="save()"/> <input
						type="button" name="Submit2" value="返回" class="button"
						onclick="window.history.go(-1);" /></td>
				</tr>
			</table>
		</div>
	</form>
</body>
</html>
